import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'

Vue.use(Router)

export default new Router({
    routes: [
        //登录
        {
            path: '/',
            name: 'login',
            component: () => import('./views/login/login.vue')
        },
        {
            path: '/register',
            name: 'register',
            component: () => import('./views/login/register.vue')
        },
        {
            path: '/forget',
            name: 'forget',
            component: () => import('./views/login/forget.vue')
        },
        {
            path: '/qrcode',
            name: 'qrcode',
            component: () => import('./views/login/qrcode.vue')
        },


        //钱包
        {
            path: '/wallet',
            name: 'wallet',
            component: () => import('./views/wallet/wallet.vue')
        },
        {
            path: '/deposit',
            name: 'deposit',
            component: () => import('./views/wallet/deposit.vue')
        },
        {
            path: '/deposit-record',
            name: 'deposit-record',
            component: () => import('./views/wallet/deposit-record.vue')
        },
        {
            path: '/agreement',
            name: 'agreement',
            component: () => import('./views/wallet/agreement.vue')
        },


        //发现
        {
            path: '/find',
            name: 'find',
            component: () => import('./views/find/find.vue')
        },
        {
            path: '/game',
            name: 'game',
            component: () => import('./views/find/game.vue')
        },


        //个人中心
        {
            path: '/my',
            name: 'my',
            component: () => import('./views/my/my.vue')
        },
        {
            path: '/money-detail',
            name: 'money-detail',
            component: () => import('./views/my/money-detail.vue')
        },
        {
            path: '/withdraw-detail',
            name: 'withdraw-detail',
            component: () => import('./views/my/withdraw-detail.vue')
        },
        {
            path: '/recommend',
            name: 'recommend',
            component: () => import('./views/my/recommend.vue')
        },
        {
            path: '/identity',
            name: 'identity',
            component: () => import('./views/my/identity.vue')
        }
    ]
})

